import qbs

CppApplication {
    type: "application" // To suppress bundle generation on Mac
    consoleApplication: true
    files: [
        "cc/ccatomic.h",
        "cc/ccconfig.h",
        "cc/ccpublic.cpp",
        "cc/ccpublic.h",
        "cc/ccseqqueue.h",
        "cc/ccsseqqueue.h",
        "cc/ccthread.h",
        "cc/cctypedef.h",
        "ffconfig.h",
        "fffunction.h",
        "ffoption.cpp",
        "ffoption.h",
        "ffpublic.h",
        "main.cpp",
        "./cpplogger/*",
        "threadpool/syncsemaphore.cpp",
        "threadpool/syncsemaphore.h",
        "threadpool/thread.hpp",
        "threadpool/threadpool.cpp",
        "threadpool/threadpool.h",
    ]

    cpp.cxxLanguageVersion:"c++11"

    cpp.cxxFlags:["-std=c++11"]

    cpp.includePaths:["./", "./cc", "./cpplogger", "./threadpool/"]

    cpp.dynamicLibraries:["pthread"]

    Group {     // Properties for the produced executable
        fileTagsFilter: product.type
        qbs.install: true
    }
}

